package io.renren.modules.app.service.impl;

import io.renren.common.utils.PageUtils;
import io.renren.common.utils.Query;
import io.renren.modules.app.dao.ScriptRunInfoDao;
import io.renren.modules.app.entity.ScriptRunInfoEntity;
import io.renren.modules.app.service.ScriptRunInfoService;
import org.springframework.stereotype.Service;
import java.util.Map;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;


@Service("scriptRunInfoService")
public class ScriptRunInfoServiceImpl extends ServiceImpl<ScriptRunInfoDao, ScriptRunInfoEntity> implements ScriptRunInfoService {

    @Override
    public PageUtils queryPage(Map<String, Object> params) {
        IPage<ScriptRunInfoEntity> page = this.page(
                new Query<ScriptRunInfoEntity>().getPage(params),
                new QueryWrapper<ScriptRunInfoEntity>()
        );

        return new PageUtils(page);
    }

}